R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

#Distance from cities
##########

# Load necessary libraries
# install.packages(c("sf", "terra", "raster", "httr", "jsonlite","FedData"))
library(sf)
## Linking to GEOS 3.13.0, GDAL 3.8.5, PROJ 9.5.1; sf_use_s2() is TRUE
library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
library(ggplot2)
library(matrixStats)
## 
## Attaching package: 'matrixStats'
## The following object is masked from 'package:dplyr':
## 
##     count
library(terra)
## terra 1.8.29
library(raster)
## Loading required package: sp
## 
## Attaching package: 'raster'
## The following object is masked from 'package:dplyr':
## 
##     select
library(httr)
library(jsonlite)
library(FedData)
## You have loaded FedData v4.
## As of FedData v4 we have retired
## dependencies on the `sp` and `raster` packages.
## All functions in FedData v4 return `terra` (raster)
## or `sf` (vector) objects by default, and there may be
## other breaking changes.
# Read Fire Data (2020 only)
data <- st_read("~/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/California_Fire_Perimeters_(all)/California_Fire_Perimeters_(all).shp")
## Reading layer `California_Fire_Perimeters_(all)' from data source 
##   `/Users/macbookpro/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/California_Fire_Perimeters_(all)/California_Fire_Perimeters_(all).shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 22261 features and 21 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -13848330 ymin: 3833204 xmax: -12705610 ymax: 5255380
## Projected CRS: WGS 84 / Pseudo-Mercator
data <- data %>% filter(YEAR_ == 2020)

# Read California State Boundary
US_States <- st_read("~/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/ne_110m_admin_1_states/ne_110m_admin_1_states_provinces.shp")
## Reading layer `ne_110m_admin_1_states_provinces' from data source 
##   `/Users/macbookpro/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/ne_110m_admin_1_states/ne_110m_admin_1_states_provinces.shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 51 features and 121 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -171.7911 ymin: 18.91619 xmax: -66.96466 ymax: 71.35776
## Geodetic CRS:  WGS 84
US_States_simple <- US_States %>% dplyr::select(name, postal, latitude, longitude, geometry)
CA <- US_States_simple %>% filter(postal == "CA")

# Read the “Places” shapefile
# Loading this to get info about cities
places <- st_read("~/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/tl_2020_06_place/tl_2020_06_place.shp")
## Reading layer `tl_2020_06_place' from data source 
##   `/Users/macbookpro/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/tl_2020_06_place/tl_2020_06_place.shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 1611 features and 16 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -124.2695 ymin: 32.53433 xmax: -114.229 ymax: 41.99317
## Geodetic CRS:  NAD83
colnames(places)
##  [1] "STATEFP"  "PLACEFP"  "PLACENS"  "GEOID"    "NAME"     "NAMELSAD"
##  [7] "LSAD"     "CLASSFP"  "PCICBSA"  "PCINECTA" "MTFCC"    "FUNCSTAT"
## [13] "ALAND"    "AWATER"   "INTPTLAT" "INTPTLON" "geometry"
head(places)
## Simple feature collection with 6 features and 16 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -120.6741 ymin: 33.62517 xmax: -117.6746 ymax: 40.45356
## Geodetic CRS:  NAD83
##   STATEFP PLACEFP  PLACENS   GEOID         NAME          NAMELSAD LSAD CLASSFP
## 1      06   77364 02412017 0677364   Susanville   Susanville city   25      C1
## 2      06   02000 02409704 0602000      Anaheim      Anaheim city   25      C1
## 3      06   16532 02410239 0616532   Costa Mesa   Costa Mesa city   25      C1
## 4      06   17750 02410282 0617750      Cypress      Cypress city   25      C1
## 5      06   28000 02410556 0628000    Fullerton    Fullerton city   25      C1
## 6      06   29000 02410568 0629000 Garden Grove Garden Grove city   25      C1
##   PCICBSA PCINECTA MTFCC FUNCSTAT     ALAND  AWATER    INTPTLAT     INTPTLON
## 1       Y        N G4110        A  20507839  218688 +40.4336740 -120.6283062
## 2       Y        N G4110        A 130206498 1567025 +33.8555018 -117.7586572
## 3       Y        N G4110        A  40937896   24554 +33.6659055 -117.9123358
## 4       N        N G4110        A  17127354   22003 +33.8184768 -118.0383074
## 5       N        N G4110        A  58065841   32825 +33.8857156 -117.9280247
## 6       N        N G4110        A  46506034   45894 +33.7787816 -117.9604719
##                         geometry
## 1 MULTIPOLYGON (((-120.5261 4...
## 2 MULTIPOLYGON (((-118.0175 3...
## 3 MULTIPOLYGON (((-117.9546 3...
## 4 MULTIPOLYGON (((-118.0633 3...
## 5 MULTIPOLYGON (((-117.9854 3...
## 6 MULTIPOLYGON (((-118.0429 3...
# Reproject all layers to EPSG:3310 at the start
data_3310 <- st_transform(data, 3310)
CA_3310 <- st_transform(CA, 3310)
places_ca_centroids_3310 <- st_centroid(st_transform(places, 3310)) 
## Warning: st_centroid assumes attributes are constant over geometries
# Combine all fire polygons into one and compute centroid
fire_union_3310 <- st_union(data_3310)
fire_union_centroid_3310 <- st_centroid(fire_union_3310)

# Distance from each city centroid to the fire boundary and union centroid
places_ca_centroids_3310$dist_to_fire_boundary <- st_distance(places_ca_centroids_3310, fire_union_3310)
places_ca_centroids_3310$dist_to_fire_union_centroid <- st_distance(places_ca_centroids_3310, fire_union_centroid_3310)

# Compute centroids of individual fires and their distances to cities
fire_centroids_3310 <- st_centroid(data_3310)
## Warning: st_centroid assumes attributes are constant over geometries
city_fire_matrix <- st_distance(places_ca_centroids_3310, fire_centroids_3310)

# Extract the nearest fire centroid distance per city
places_ca_centroids_3310$dist_to_nearest_fire_centroid <- rowMins(city_fire_matrix)

ggplot() +
  # California boundary
  geom_sf(data = CA_3310, fill = "white", color = "black") +
  
  # Fire polygons
  geom_sf(data = data_3310, fill = "red", alpha = 0.6, color = NA) +
  
  # City centroids, colored by distance to boundary
  geom_sf(
    data = places_ca_centroids_3310,
    aes(color = as.numeric(dist_to_fire_boundary)),
    size = 1
  ) +
  
  scale_color_viridis_c(option = "plasma") +
  theme_minimal() +
  labs(
    color = "Distance to Fire (m)",
    title = "California Fires 2020: Distance from Cities to Fire Perimeters (EPSG:3310)"
  )

max_dist <- max(as.numeric(places_ca_centroids_3310$dist_to_fire_boundary), na.rm = TRUE)

ggplot() +
  geom_sf(data = CA_3310, fill = "white", color = "black") +
  geom_sf(data = data_3310, fill = "black", alpha = 0.9, color = NA) +
  geom_sf(
    data = places_ca_centroids_3310,
    aes(color = as.numeric(dist_to_fire_boundary)),
    size = 1
  ) +
  scale_color_gradientn(
    colors = c("#FF0000", "#FFA500", "#808080", "#008000"),
    breaks = c(0, 1000, 5000, 10000, 50000, 100000, 150000, max_dist),
    labels = c("0 km", "1 km", "5 km", "10 km", "50 km", "100 km", "150 km",
               paste0(round(max_dist/1000), " km"))
  ) +
  guides(
    # Make the colorbar bigger/taller, with some padding
    color = guide_colorbar(
      barwidth = 1.5,    # width of the bar in "plot" units
      barheight = 10,    # height of the bar in "plot" units
      title.position = "top"  # puts the legend title on top
    )
  ) +
  theme_minimal() +
  theme(
    legend.title = element_text(size = 12),
    legend.text  = element_text(size = 10)
  ) +
  labs(
    color = "Distance to Fire (m)",
    title = "CA Fires 2020: Distance from Cities"
  )

#### Fire Proximity - Filter 50km

# 1. Convert distance units to numeric (removing "units" class):
places_ca_centroids_3310$dist_num <- as.numeric(places_ca_centroids_3310$dist_to_fire_boundary)

# 2. Filter for distances less than 50 km (50,000 meters):
cities_close <- places_ca_centroids_3310 %>%
  filter(dist_num < 50000)

ggplot() +
  geom_sf(data = CA_3310, fill = "white", color = "black") +
  geom_sf(data = data_3310, fill = "black", alpha = 0.9, color = NA) +
  geom_sf(
    data = cities_close,
    aes(color = as.numeric(dist_to_fire_boundary)),
    size = 1
  ) +
  scale_color_gradientn(
    colors = c("#FF0000", "#FFA500", "#808080", "#008000")
  ) +
  guides(
    # Make the colorbar bigger/taller, with some padding
    color = guide_colorbar(
      barwidth = 1.5,    # width of the bar in "plot" units
      barheight = 10,    # height of the bar in "plot" units
      title.position = "top"  # puts the legend title on top
    )
  ) +
  theme_minimal() +
  theme(
    legend.title = element_text(size = 12),
    legend.text  = element_text(size = 10)
  ) +
  labs(
    color = "Distance to Fire (m)",
    title = "CA Fires 2020: Distance from Cities - Less than 50 km"
  )

##################
# List those cities for reference

# Ensure the distance column is numeric 
places_ca_centroids_3310 <- places_ca_centroids_3310 %>%
  mutate(dist_num = as.numeric(dist_to_fire_boundary))

# Filter cities that are within 50 km (i.e., less than 50,000 m)
cities_50 <- places_ca_centroids_3310 %>%
  filter(dist_num < 50000) %>%   # 50 km threshold
  arrange(dist_num)               # Rank in ascending order (closest first)

# Extract a list with city names, distances, and coordinates
cities_list <- dplyr::select(st_drop_geometry(cities_50), NAME, dist_num)

print(cities_list)
##                                         NAME    dist_num
## 1                                Berry Creek     0.00000
## 2                                  Big Creek     0.00000
## 3                                 Bonny Doon     0.00000
## 4                                Cedar Slope     0.00000
## 5                                  Deer Park     0.00000
## 6                                 Forbestown     0.00000
## 7                                 Happy Camp     0.00000
## 8                                   Loma Mar     0.00000
## 9                           Moskowite Corner     0.00000
## 10                                       Ono     0.00000
## 11                                      Ruth     0.00000
## 12                             Sequoia Crest     0.00000
## 13                               Shaver Lake     0.00000
## 14                           Williams Canyon     0.00000
## 15                                  Modjeska    29.49649
## 16                             Boulder Creek    53.50720
## 17                                  Monrovia    57.69122
## 18                                 Pierpoint    58.12320
## 19                                 Brookdale    83.68816
## 20                                    Walker   104.80624
## 21                                       Igo   128.83518
## 22                               Camp Nelson   138.27686
## 23                             Spring Garden   146.05814
## 24                             Mountain Mesa   206.82236
## 25                                 Silverado   211.08018
## 26                               Chino Hills   297.79606
## 27                               Smartsville   312.79298
## 28                                 San Lucas   429.17792
## 29                                 Ponderosa   501.65748
## 30                                    Rumsey   505.01258
## 31                                Agua Dulce   520.25284
## 32                                    Felton   617.67523
## 33                                    Guinda   629.62330
## 34                           Wofford Heights   645.94772
## 35   California Polytechnic State University   782.73306
## 36                                  Oak Glen   817.48514
## 37                                     Doyle   818.15055
## 38                                 Tehachapi   885.05109
## 39                              Golden Hills   900.13193
## 40                                    Angwin   961.97312
## 41                                Ben Lomond   971.50285
## 42                     Pepperdine University   982.11054
## 43                                Marysville   986.28700
## 44                                 Davenport  1009.28800
## 45                                     Keene  1017.28777
## 46                               Yorba Linda  1049.03115
## 47                               East Quincy  1109.79223
## 48                                 Calistoga  1163.68559
## 49                               Lake Hughes  1204.79461
## 50                                  Montague  1215.66490
## 51                                St. Helena  1222.04298
## 52                                 Allendale  1231.57172
## 53                          La Habra Heights  1245.51931
## 54                          Rancho San Diego  1283.09836
## 55                             Cherry Valley  1303.02222
## 56                                    Duarte  1312.59795
## 57                              Taylorsville  1316.93965
## 58                            Elizabeth Lake  1344.37303
## 59                           Lake Nacimiento  1362.74924
## 60                                    Brooks  1368.87477
## 61                                Los Olivos  1410.86063
## 62                             Johnstonville  1423.48814
## 63                                 Kernville  1443.45744
## 64                              Indian Falls  1453.28909
## 65                             Santa Venetia  1453.43044
## 66                           Shingle Springs  1480.25700
## 67                             Robinson Mill  1517.81020
## 68                                 King City  1523.92006
## 69                                  Bradbury  1551.76224
## 70                          Montgomery Creek  1556.54402
## 71                             Diablo Grande  1576.19947
## 72                               Kelly Ridge  1579.09945
## 73                                 Woodlands  1584.62441
## 74                       Fort Hunter Liggett  1587.57592
## 75                           American Canyon  1617.27591
## 76                                  Oroville  1617.73661
## 77                                   Auberry  1637.64781
## 78                                 Blacklake  1671.33830
## 79                            North Lakeport  1686.68638
## 80                              Santa Susana  1723.62041
## 81                                  Antelope  1742.66221
## 82                                  Whitmore  1780.61729
## 83                                 Beale AFB  1789.05342
## 84                            Trabuco Canyon  1822.39056
## 85                               Lytle Creek  1832.69519
## 86                                 Callender  1879.45883
## 87                            Clearlake Oaks  1899.06796
## 88                                  Loyalton  1916.43327
## 89                                  Coronita  1932.97637
## 90                               Lake Forest  1978.44639
## 91                          Hacienda Heights  1993.25654
## 92                                     Garey  1994.09595
## 93                                   Sisquoc  2010.73173
## 94                                Thermalito  2031.10408
## 95                                  Whittier  2040.10119
## 96                                  Highland  2090.39773
## 97                                   Ballard  2095.56657
## 98                               Pismo Beach  2125.13128
## 99                                    Tarina  2132.52929
## 100                    Eastern Goleta Valley  2140.71654
## 101                                   Coloma  2174.27511
## 102                                   Cotati  2179.80106
## 103                             Palm Springs  2200.75350
## 104                            Spring Valley  2203.97853
## 105                                   Lodoga  2210.00261
## 106                                  Castaic  2266.53696
## 107                         Larkfield-Wikiup  2276.87935
## 108                                  Kenwood  2284.26451
## 109                              Guerneville  2309.27937
## 110                                Elk Creek  2358.76924
## 111                               El Cerrito  2423.66675
## 112                          Avocado Heights  2424.91155
## 113                                 La Verne  2451.15987
## 114                                  Creston  2482.51288
## 115                                    Azusa  2503.01535
## 116                              Avila Beach  2536.12373
## 117                                Val Verde  2551.75822
## 118                               Bucks Lake  2562.43939
## 119                                   Honcut  2563.29237
## 120                             Ladera Ranch  2602.72501
## 121                 Bakersfield Country Club  2620.75173
## 122                                  Tancred  2624.84819
## 123                                   Paxton  2629.49506
## 124                                   Bangor  2635.67024
## 125                                Weitchpec  2636.14071
## 126                               Healdsburg  2651.11106
## 127                          Rowland Heights  2671.20152
## 128                             Sierra Madre  2677.34026
## 129                              Pine Canyon  2691.33867
## 130                 Squirrel Mountain Valley  2704.77873
## 131                             Laguna Woods  2716.16831
## 132                             Cameron Park  2716.65030
## 133                                Spreckels  2721.97325
## 134                    Desert View Highlands  2746.20097
## 135                                Greenhorn  2748.39676
## 136                               East Niles  2766.90562
## 137                             Butte Valley  2772.39635
## 138                               Fort Jones  2773.69012
## 139                                   Covelo  2779.08579
## 140                                     Brea  2806.10840
## 141                          Chilcoot-Vinton  2846.55734
## 142                              Cedar Ridge  2848.16896
## 143                            Stirling City  2890.20429
## 144                            Hasley Canyon  2953.92659
## 145                                  Yucaipa  2957.26083
## 146                            Sierra Brooks  2970.09685
## 147                          Running Springs  2982.36226
## 148                                Coleville  3048.00087
## 149                                  Hartley  3073.56663
## 150                                  Mentone  3073.75070
## 151                                   Fulton  3102.37892
## 152                                   Cuyama  3112.98904
## 153                      San Juan Capistrano  3113.40194
## 154                            Aspen Springs  3146.60531
## 155                                Penngrove  3148.86838
## 156                               Rose Hills  3169.81115
## 157                  Lagunitas-Forest Knolls  3171.79303
## 158                                  Elverta  3182.33043
## 159                                 Lockwood  3202.03263
## 160                            Post Mountain  3257.26591
## 161                                    Colma  3288.29662
## 162                             Mount Hermon  3312.35601
## 163                               Lower Lake  3331.71771
## 164                                   Wilton  3332.31756
## 165                              Los Ranchos  3348.24834
## 166                                  Cayucos  3355.03094
## 167                             Douglas City  3393.80136
## 168                                  Banning  3404.22544
## 169                    Carmel Valley Village  3452.52785
## 170                      Point Reyes Station  3471.21523
## 171                               North Fork  3473.33963
## 172                                Roseville  3481.56391
## 173                            Lake Isabella  3485.28275
## 174                      Little Grass Valley  3498.23890
## 175                                    Linda  3515.71468
## 176                                  Oildale  3518.78129
## 177                                Daly City  3539.69507
## 178                                   Irvine  3540.51242
## 179                         Lakeland Village  3558.37158
## 180                            Clipper Mills  3563.53838
## 181                                 Tulelake  3593.97299
## 182                                   Corona  3602.93843
## 183                                Inverness  3611.19850
## 184                                 Palmdale  3615.20791
## 185                               Santa Cruz  3627.77709
## 186                             North Tustin  3640.39853
## 187                              Timber Cove  3718.87222
## 188                                   El Rio  3733.11401
## 189                                Hollister  3770.47753
## 190                                   Nipomo  3777.72443
## 191                               San Rafael  3786.11235
## 192                             Home Gardens  3801.17116
## 193                                     Anza  3814.67545
## 194                             Agoura Hills  3835.02749
## 195                                   Oxnard  3847.83859
## 196                                   Orcutt  3861.62986
## 197                                  Grenada  3863.07654
## 198                                  Winters  3863.16637
## 199                    Challenge-Brownsville  3886.56504
## 200                          Rough and Ready  3888.74890
## 201                                    Tobin  3890.74724
## 202                  Camp Pendleton Mainside  3911.47421
## 203                             Coffee Creek  3912.60680
## 204                              El Sobrante  3914.79227
## 205                                 Sheridan  3960.30177
## 206                               Whitewater  3985.73142
## 207                                  Nicasio  3986.50319
## 208                                Fallbrook  4018.24505
## 209                                  Temelec  4099.82240
## 210          El Paso de Robles (Paso Robles)  4112.49444
## 211                              Aliso Viejo  4133.67163
## 212                                     Edna  4141.91100
## 213                                  Lincoln  4150.46460
## 214                              Brooktrails  4152.52117
## 215                                    Sunol  4167.36036
## 216               San Buenaventura (Ventura)  4174.03541
## 217                                  Platina  4182.53734
## 218                                 Rackerby  4197.55717
## 219                               Greenville  4211.04105
## 220                                Groveland  4226.37175
## 221                          San Luis Obispo  4228.31065
## 222                               Los Berros  4230.68983
## 223                            Santa Clarita  4235.30207
## 224                               Upper Lake  4236.84680
## 225                                    Acton  4241.14802
## 226                          Stevenson Ranch  4265.62754
## 227                                Vacaville  4267.37410
## 228                                    Twain  4268.64636
## 229                             Rohnert Park  4297.78692
## 230                            Laguna Niguel  4302.80477
## 231                                Pescadero  4313.37071
## 232                                Broadmoor  4326.13716
## 233                                Fairfield  4337.33373
## 234                                  McCloud  4353.82373
## 235                               Littlerock  4356.40555
## 236                               Santa Rosa  4366.88981
## 237                                Mad River  4368.15634
## 238                  Sonoma State University  4368.43160
## 239                                Hillcrest  4385.09999
## 240                               Rutherford  4438.58868
## 241                                    Chino  4444.52491
## 242                                La Puente  4482.51304
## 243                               Lake Davis  4486.28273
## 244                                 Redlands  4521.53317
## 245                                Patterson  4526.17637
## 246                        San Juan Bautista  4539.25041
## 247                                   Quincy  4545.98430
## 248                                  Mettler  4572.11784
## 249                       Hidden Valley Lake  4574.75572
## 250                                San Dimas  4581.75448
## 251                           South Oroville  4604.10589
## 252                                 Petaluma  4630.33369
## 253                                Wheatland  4688.75316
## 254                    South Monrovia Island  4693.28013
## 255                 West Whittier-Los Nietos  4695.45978
## 256                                 Glendora  4701.22715
## 257                                  Windsor  4707.00476
## 258                                     Nice  4720.10420
## 259                             Goodmanville  4727.03996
## 260                       West Puente Valley  4730.90355
## 261                                  Arcadia  4746.72027
## 262                                 La Habra  4767.60507
## 263                                Morro Bay  4781.15773
## 264                           Rancho Murieta  4791.16450
## 265                              Valle Vista  4798.05576
## 266                               Santa Ynez  4812.28555
## 267                                 Cromberg  4818.95097
## 268                              Winterhaven  4833.99501
## 269                                  Esparto  4846.25589
## 270                             Green Valley  4877.31482
## 271                  Casa de Oro-Mount Helix  4887.37654
## 272                                Yuba City  4906.71397
## 273                                  Topanga  4921.60159
## 274                            Oroville East  4970.66806
## 275                             Grass Valley  5007.12248
## 276                         Silverado Resort  5010.49338
## 277                                 La Porte  5019.00449
## 278                                     Piru  5019.55987
## 279                                  Chualar  5027.58477
## 280                                  Saticoy  5031.38254
## 281                                 Cherokee  5038.31360
## 282                                  Lompico  5043.05981
## 283                                 Beaumont  5069.31229
## 284                                    Jamul  5070.70220
## 285                             Leona Valley  5093.14846
## 286                           Foothill Farms  5118.25987
## 287                            Swall Meadows  5164.91281
## 288                   Rancho Santa Margarita  5192.88037
## 289                            Paradise Park  5212.62809
## 290                                 Buellton  5243.05113
## 291                             Coto de Caza  5254.48471
## 292                                 La Honda  5275.45798
## 293                         Mountain Meadows  5299.58869
## 294                     Rancho Mission Viejo  5318.72858
## 295                                  Zayante  5334.88471
## 296                                   Tustin  5345.87709
## 297                                   Citrus  5348.48609
## 298                               Rivergrove  5351.58010
## 299                                  Fairfax  5353.28704
## 300                            Granite Hills  5360.15391
## 301                                Rio Linda  5360.94429
## 302                                  Minkler  5373.24939
## 303                               Pleasanton  5398.67162
## 304                              Yankee Hill  5450.49660
## 305                                Calabasas  5462.31921
## 306                                   Edison  5472.57855
## 307                                     Taft  5483.06629
## 308                                 Cazadero  5494.13636
## 309                           Lake Don Pedro  5499.91144
## 310                                  Mineral  5509.25132
## 311                               Middletown  5521.50932
## 312                                 Industry  5523.10131
## 313                                  Bradley  5540.20797
## 314                             Sunny Slopes  5589.40678
## 315                            Spring Valley  5602.26284
## 316                                   Malibu  5608.72107
## 317                                Millerton  5611.80236
## 318                                    Norco  5640.55848
## 319                              Morgan Hill  5666.44540
## 320                              Centerville  5720.96301
## 321                                Livermore  5727.24906
## 322                         East Bakersfield  5728.12147
## 323                             Potomac Park  5729.08340
## 324                           South El Monte  5730.82023
## 325                        Mayflower Village  5745.75116
## 326                        Clearlake Riviera  5764.82762
## 327                           Lake Riverside  5797.04593
## 328                              Burnt Ranch  5828.01805
## 329                                  Rocklin  5834.34951
## 330                                 Soda Bay  5836.43632
## 331                                 Gonzales  5837.81709
## 332                             Grover Beach  5855.84969
## 333                                  Salinas  5870.13482
## 334   University of California-Santa Barbara  5909.56231
## 335                               Pasatiempo  5911.59930
## 336                           Choctaw Valley  5914.85822
## 337                                    Posey  5915.92494
## 338                                 San Ardo  5924.72918
## 339                             San Geronimo  5930.74693
## 340                           South Whittier  5938.46887
## 341                             Laguna Hills  5946.21356
## 342                                    Yreka  5961.45498
## 343                                    Hoopa  5964.53860
## 344                           Round Mountain  5972.95585
## 345                                   Jenner  5977.58437
## 346                               Susanville  5993.21898
## 347                                Prunedale  6011.03669
## 348                               Occidental  6029.02605
## 349                            East Whittier  6074.67119
## 350                                Claremont  6083.52665
## 351                             Green Valley  6103.87112
## 352                              Nevada City  6120.98004
## 353                                Irwindale  6129.87548
## 354                                 Lakeport  6130.92884
## 355                                  Benicia  6136.13212
## 356                                Clearlake  6139.75876
## 357                                 Idlewild  6153.21654
## 358                              Suisun City  6171.51803
## 359                                   Goleta  6244.97533
## 360                     South San Jose Hills  6269.92750
## 361                           Sereno del Mar  6270.70601
## 362                          Whitley Gardens  6274.69838
## 363                           Rancho Cordova  6302.36684
## 364                                Sea Ranch  6331.95210
## 365                               Villa Park  6335.91906
## 366                                    Crest  6343.19659
## 367                               Isla Vista  6376.58522
## 368                              Pico Rivera  6384.45086
## 369                                 Casmalia  6405.33362
## 370                          North Highlands  6416.08681
## 371                                  Solvang  6422.45309
## 372                                 Oakville  6434.65568
## 373                                 Altadena  6435.42617
## 374                                   Alpine  6444.61213
## 375                              Shingletown  6446.09850
## 376                              Geyserville  6452.85463
## 377                             Crowley Lake  6458.17151
## 378                                    Topaz  6459.92607
## 379                                   Shasta  6493.70916
## 380                            Arroyo Grande  6502.98578
## 381                              Santa Maria  6518.08687
## 382                               Cottonwood  6537.62146
## 383                                   Carmet  6599.97024
## 384                                    Arvin  6638.13849
## 385                          Santa Margarita  6662.75372
## 386                                  Portola  6674.03485
## 387                                Loma Rica  6713.30770
## 388                                  Cabazon  6718.22781
## 389                                   Bodega  6730.53536
## 390                               Olivehurst  6761.10583
## 391                               Las Flores  6782.44216
## 392                                  Valinda  6798.81789
## 393                            East Pasadena  6814.61642
## 394                             Laguna Beach  6817.60109
## 395                                 El Monte  6843.76254
## 396                               East Orosi  6858.86553
## 397                                   Keddie  6860.39230
## 398                                Templeton  6871.60697
## 399                                   Sonoma  6873.99369
## 400                           East Foothills  6875.31327
## 401                                 Eastvale  6893.61548
## 402                                   Folsom  6909.49517
## 403                          Mountain Center  6915.39244
## 404                                Camarillo  6940.41626
## 405                                  Soledad  6952.01348
## 406                                La Cresta  6952.86568
## 407                                   Orange  6968.20421
## 408                             Camptonville  6975.69947
## 409                            Scotts Valley  6995.76799
## 410                             Squaw Valley  6996.02900
## 411                                Brentwood  6997.59460
## 412                                Millville  7000.13642
## 413                                 El Cajon  7018.16236
## 414                                 Milpitas  7037.10306
## 415                           Crescent Mills  7039.53068
## 416                                 Dunnigan  7045.50981
## 417                                 Lakeview  7056.00019
## 418                                  Vincent  7078.82363
## 419                                 Mariposa  7081.86291
## 420                            Butte Meadows  7096.15833
## 421                               Dana Point  7098.97917
## 422                               Glen Ellen  7106.04796
## 423                         Santa Fe Springs  7125.86593
## 424                                Monte Rio  7149.28091
## 425                            Mission Viejo  7172.79166
## 426                                 Paskenta  7197.61174
## 427                              Simi Valley  7210.74774
## 428                            Lake Elsinore  7214.37485
## 429                                  Hopland  7232.24798
## 430                                 Oak Park  7273.46925
## 431                             Dustin Acres  7275.66630
## 432                                   Lompoc  7279.63595
## 433                           Cathedral City  7281.46757
## 434                                  Seville  7282.17608
## 435                                  Shandon  7282.35139
## 436                              Forestville  7308.97620
## 437                              Kelseyville  7309.41906
## 438                             Cold Springs  7345.34286
## 439                               McKittrick  7353.67630
## 440                             Hidden Hills  7375.36928
## 441                                 Wilsonia  7382.13437
## 442                              Alta Sierra  7385.29396
## 443                                  Dogtown  7394.31721
## 444                                   Gilroy  7413.07208
## 445                           McClellan Park  7449.75564
## 446                             Valley Acres  7452.91402
## 447                              Bear Valley  7469.06268
## 448                                  Westley  7476.05088
## 449                              Twain Harte  7490.47954
## 450                            Santa Barbara  7500.83888
## 451                          McClenney Tract  7504.73329
## 452                               Twin Lakes  7504.93439
## 453                                 Bootjack  7533.13188
## 454                                 Fillmore  7543.64121
## 455                           North El Monte  7549.96594
## 456                              Derby Acres  7563.75252
## 457                                 Delleker  7574.88270
## 458                            Lake Shastina  7599.44327
## 459                              Charter Oak  7612.48561
## 460                               Oak Shores  7634.15408
## 461                      Bear Valley Springs  7643.62286
## 462                              Bell Canyon  7668.59464
## 463                                Bass Lake  7672.34217
## 464                                Placentia  7674.74324
## 465                             Baldwin Park  7686.80646
## 466                                 Calimesa  7688.29344
## 467                                   Delano  7698.03671
## 468                                    Lebec  7726.55347
## 469                                  Herlong  7738.03134
## 470                                 Los Osos  7743.78870
## 471                          El Dorado Hills  7761.00056
## 472                                  Palermo  7765.90025
## 473                                  Calpine  7770.97735
## 474                               San Martin  7784.56338
## 475                         Camanche Village  7805.29380
## 476                              San Anselmo  7831.26223
## 477                       Auburn Lake Trails  7836.61068
## 478                           Mission Canyon  7868.56101
## 479                             Salmon Creek  7879.87081
## 480                                   Weldon  7916.08602
## 481                                Ridgemark  7935.08320
## 482                                 Bostonia  7961.35691
## 483                                Fullerton  7974.11798
## 484                            Meadow Valley  7975.32359
## 485                             Apple Valley  7979.40843
## 486                           Citrus Heights  7980.39468
## 487                                Alum Rock  7983.03952
## 488                                 Woodacre  8019.83723
## 489                                   Oceano  8022.19076
## 490                              Centerville  8066.34278
## 491                            Mountain Gate  8103.25594
## 492                             Port Hueneme  8137.06414
## 493                                Ford City  8152.43846
## 494                   California Hot Springs  8182.25417
## 495                               Atascadero  8188.77337
## 496                   Lucas Valley-Marinwood  8190.38647
## 497                    Channel Islands Beach  8191.53878
## 498                             Willow Creek  8194.72659
## 499                               Loma Linda  8197.05328
## 500                               South Taft  8219.28406
## 501                              Diamond Bar  8246.23209
## 502                                  Vallejo  8246.23617
## 503                                   Covina  8254.09859
## 504                                 Brisbane  8265.27512
## 505                               Cottonwood  8317.26080
## 506                               Mono Vista  8325.46273
## 507                                  Sattley  8329.34856
## 508                               New Cuyama  8331.42466
## 509                               Union City  8338.47389
## 510                              San Pasqual  8339.71008
## 511                                  Willits  8344.25070
## 512                                     Ross  8345.51580
## 513                                   Newell  8349.79865
## 514                                El Verano  8366.11536
## 515                          Yosemite Valley  8387.51071
## 516                         Westlake Village  8396.80805
## 517                             Coulterville  8399.13768
## 518                               East Hemet  8402.42415
## 519                                 Wildomar  8408.36758
## 520                                Stonyford  8431.34744
## 521                               Los Alamos  8444.58808
## 522                                   Rialto  8460.72441
## 523                                Pine Flat  8476.60515
## 524                        Sugarloaf Village  8489.99360
## 525                                San Bruno  8493.25376
## 526                                   Mather  8498.12588
## 527                            Rancho Mirage  8498.25734
## 528                               Lee Vining  8521.55201
## 529                             Phoenix Lake  8565.70493
## 530                            Lake Wildwood  8574.44050
## 531                            Sleepy Hollow  8593.54514
## 532                         East San Gabriel  8604.45470
## 533                               Eagleville  8607.52949
## 534                                  Madison  8607.95239
## 535                               Gold River  8616.79735
## 536                               Yountville  8626.06698
## 537                                  Dobbins  8642.45507
## 538                          Temescal Valley  8644.50802
## 539                             Santa Monica  8669.33880
## 540                          Harbison Canyon  8683.52993
## 541                              Sun Village  8695.77318
## 542                                   Elmira  8699.09567
## 543                             Three Rivers  8703.28582
## 544                                 Live Oak  8714.63751
## 545                             Happy Valley  8742.43879
## 546                              Temple City  8768.86520
## 547                                 La Presa  8773.96469
## 548                             Garden Farms  8778.31998
## 549                               Janesville  8811.94347
## 550                           Lucerne Valley  8819.81530
## 551                                Poso Park  8836.03287
## 552                               Beckwourth  8837.01706
## 553                                  Bodfish  8873.96223
## 554                              Penn Valley  8906.38101
## 555                                   Yettem  8908.21864
## 556                                Kentfield  8918.47494
## 557                           North San Juan  8925.32375
## 558                             Forest Ranch  8927.33462
## 559                                     Napa  8952.80261
## 560                                 Larkspur  8960.16693
## 561                            Big Bear Lake  8968.08205
## 562                               Montebello  8994.48592
## 563                                Greenview  9004.06387
## 564                                  Jacumba  9031.06979
## 565                             Copperopolis  9045.15592
## 566                                   Muscoy  9085.50891
## 567                              West Covina  9101.70868
## 568                                   Manton  9114.89419
## 569                                  Lucerne  9124.52936
## 570                                La Mirada  9142.96562
## 571                                 Hartland  9179.42935
## 572                          Petaluma Center  9188.68323
## 573                           Patton Village  9204.15072
## 574                                  Antioch  9231.10170
## 575                                Guadalupe  9245.63227
## 576                                  Fontana  9272.58057
## 577                         Camino Tassajara  9280.97289
## 578                            Potter Valley  9290.59932
## 579                           Winter Gardens  9305.01575
## 580                             Taft Heights  9313.09184
## 581                               Bloomfield  9315.99779
## 582                      Idyllwild-Pine Cove  9331.18152
## 583                                   Pomona  9337.69418
## 584                                     Etna  9342.40295
## 585                          Homewood Canyon  9363.86035
## 586                                  Keswick  9404.09671
## 587                                 Pasadena  9409.63695
## 588                                Hat Creek  9423.81676
## 589                           Pleasure Point  9445.66441
## 590                                     Adin  9446.92983
## 591                                 Maricopa  9448.03678
## 592                              McGee Creek  9455.52091
## 593                                  Oak Run  9464.20976
## 594                                 Paradise  9466.20151
## 595                               Bodega Bay  9510.23427
## 596                                Casa Loma  9527.86760
## 597                                 Rosemead  9537.71845
## 598                          Kennedy Meadows  9544.04062
## 599                               Palo Cedro  9564.12189
## 600                        South San Gabriel  9571.80951
## 601                                   Dublin  9586.36830
## 602                                   Cutler  9595.39087
## 603                      South San Francisco  9597.32958
## 604                                   Concow  9604.63632
## 605                       Pine Mountain Lake  9609.82890
## 606                                   Walnut  9613.47122
## 607                             Warm Springs  9621.83514
## 608                            Mammoth Lakes  9634.16907
## 609                                    Orosi  9645.00289
## 610                                  Fairfax  9650.03161
## 611                                  Boronda  9715.61428
## 612                                  La Mesa  9723.94753
## 613                              Casa Conejo  9727.38546
## 614                          Edmundson Acres  9737.65651
## 615                                  Grayson  9778.26712
## 616                           San Bernardino  9787.15603
## 617                                   Friant  9796.93495
## 618                         Panorama Heights  9814.22505
## 619                             Corte Madera  9824.69805
## 620                               Sebastopol  9828.96075
## 621                                Blackhawk  9867.10529
## 622                              Sierraville  9908.39141
## 623                                  Potrero  9915.54753
## 624                             Fuller Acres  9936.96431
## 625                        Bonadelle Ranchos  9939.94497
## 626                               San Miguel  9955.11410
## 627                             San Clemente  9958.54815
## 628                                    Verdi  9989.22945
## 629                                 Eldridge 10023.95317
## 630                        Boyes Hot Springs 10045.23884
## 631                     Camanche North Shore 10071.82987
## 632                       Sugarloaf Saw Mill 10102.57171
## 633                             San Fernando 10108.22839
## 634                                  Wallace 10160.43899
## 635                                     Clay 10167.10844
## 636                                    Byron 10170.23946
## 637                     La Cañada Flintridge 10219.03265
## 638                              San Jacinto 10219.08142
## 639                                  Almanor 10234.34163
## 640                                   Avenal 10268.19956
## 641                            Crows Landing 10294.54416
## 642                              Silver City 10295.26681
## 643                               Port Costa 10331.20042
## 644                               San Marino 10342.33657
## 645                            Mission Hills 10374.37415
## 646                                Fair Oaks 10402.06855
## 647                          Diamond Springs 10407.34882
## 648                                   Loomis 10427.14171
## 649                            Plumas Eureka 10442.22309
## 650                              Allensworth 10453.94735
## 651                                   Novato 10465.31423
## 652                        Lake Almanor West 10500.68944
## 653                       Desert Hot Springs 10502.81398
## 654                                    Nuevo 10510.98572
## 655                             Mohawk Vista 10552.33057
## 656                                Canyondam 10575.14327
## 657                              Springville 10580.63718
## 658                                  Norwalk 10584.63142
## 659                               Cloverdale 10599.03394
## 660                            Moreno Valley 10635.19663
## 661                           Mi-Wuk Village 10675.03341
## 662                                 Anderson 10689.57263
## 663                             Soulsbyville 10722.37911
## 664                              Santa Paula 10726.63706
## 665                                  Anaheim 10755.02013
## 666                         Stallion Springs 10756.73289
## 667                                 Hornitos 10784.95272
## 668                                Montclair 10786.29126
## 669                              Santa Nella 10820.57259
## 670                                 Pacifica 10829.15447
## 671                              Lemon Grove 10855.68585
## 672                      San Antonio Heights 10866.65251
## 673                             Greeley Hill 10879.40519
## 674                                 Capitola 10881.89118
## 675                               Prattville 10909.94848
## 676                           Lake Arrowhead 10988.17504
## 677                          Trinity Village 10990.24564
## 678                              Canyon Lake 11007.94878
## 679                               Iron Horse 11039.29602
## 680                                 Coalinga 11069.15572
## 681                               Georgetown 11082.00590
## 682                              Placerville 11101.72356
## 683                                  Fremont 11136.71854
## 684                                   Upland 11167.31992
## 685                                 Dunsmuir 11187.03041
## 686                                 Lakeside 11194.99252
## 687                               Greenfield 11215.90933
## 688                  Black Point-Green Point 11240.04771
## 689                                 Castella 11256.26409
## 690                            Junction City 11260.67300
## 691                                 Columbia 11270.08547
## 692        Fetters Hot Springs-Agua Caliente 11297.94812
## 693                              Old Station 11380.66585
## 694                             Frazier Park 11399.98782
## 695                                   Aromas 11410.42794
## 696                              Orange Cove 11415.01339
## 697                                   Mojave 11430.08625
## 698                               Carmichael 11475.25280
## 699                           North Richmond 11485.74397
## 700                                 Fairview 11510.28002
## 701                                  Rainbow 11514.58143
## 702                               Alderpoint 11538.93569
## 703                              San Gabriel 11541.95357
## 704                             Lake Mathews 11549.14591
## 705                               Johnsville 11550.33079
## 706                                  Elkhorn 11564.27180
## 707                               Bridgeport 11583.87189
## 708                                    Mabie 11594.36145
## 709                                  Seaside 11611.41281
## 710                                   Downey 11627.80319
## 711                                 Ocotillo 11652.56288
## 712                           Sierra Village 11655.95488
## 713                                     Pike 11683.70128
## 714                              Mt. Bullion 11711.50793
## 715                           Trinity Center 11720.96705
## 716                                 Millbrae 11721.84755
## 717                              Quartz Hill 11752.32557
## 718                              Valley Ford 11763.22723
## 719                         Rancho Calaveras 11764.36480
## 720                               Orangevale 11804.38194
## 721                               Wrightwood 11807.41031
## 722                              Benton Park 11808.14735
## 723                                   Soquel 11815.02149
## 724                            Mountain View 11881.90140
## 725                                  Caribou 11916.87851
## 726                               Strawberry 11917.35773
## 727                               Greenacres 11939.61103
## 728                             Del Rey Oaks 11953.69317
## 729                                Woodcrest 11955.31006
## 730                                  Bolinas 11957.78070
## 731                                Santa Ana 11963.80957
## 732                                   Angels 11971.74849
## 733                                 Crockett 11972.04814
## 734                              Weaverville 11985.08564
## 735                               Di Giorgio 11990.88967
## 736                              Bakersfield 12008.24955
## 737                                Lockeford 12036.87523
## 738                           Portola Valley 12056.33263
## 739                             College City 12077.14939
## 740                        Lake of the Woods 12125.95428
## 741                           Catheys Valley 12154.40319
## 742                            Newport Beach 12164.67610
## 743                                   Auburn 12173.35368
## 744                                   Belden 12175.53002
## 745                                     Alto 12195.55458
## 746                                 Plymouth 12196.98105
## 747                                    Hemet 12210.20564
## 748                                 Arbuckle 12211.00692
## 749                              San Andreas 12220.89593
## 750                                Vine Hill 12233.79489
## 751                                  Magalia 12236.06309
## 752                                    Clyde 12252.34858
## 753                                 Commerce 12254.16192
## 754                                 Oakhurst 12322.52858
## 755                            Rexland Acres 12329.44516
## 756                                    Somis 12335.07407
## 757                                  Gridley 12363.67681
## 758                           Valley Springs 12366.82754
## 759                    La Crescenta-Montrose 12372.67206
## 760                                 Oak View 12386.74281
## 761                          Lexington Hills 12399.00957
## 762                              East Sonora 12444.08140
## 763                                   Garnet 12479.51885
## 764                              Mill Valley 12481.89779
## 765                               Glennville 12494.63123
## 766                                 Williams 12497.96363
## 767                                 Richvale 12501.65595
## 768                           Morongo Valley 12503.20285
## 769                            Monterey Park 12532.27607
## 770                                  Fellows 12538.95420
## 771                                   Marina 12572.81721
## 772                                   Graton 12574.89047
## 773                                   Salyer 12591.76107
## 774                                 Live Oak 12664.19279
## 775                                  Ontario 12669.91459
## 776                                Old Stine 12684.31162
## 777                             Bell Gardens 12702.23871
## 778                                 Lakehead 12702.99636
## 779                                 San Jose 12712.84668
## 780                                  Cambria 12732.50479
## 781                                 Descanso 12757.36620
## 782                       Vandenberg Village 12784.02602
## 783                       Pine Mountain Club 12791.28267
## 784                                 Cohasset 12825.80737
## 785                                   Durham 12828.64456
## 786                               Tres Pinos 12851.96825
## 787                         Rancho Cucamonga 12863.93181
## 788                                  Bonsall 12867.78365
## 789                              Shasta Lake 12887.36643
## 790                          Lake California 12892.57106
## 791                                   Wawona 12901.58005
## 792                             Jones Valley 12913.44936
## 793                                    Tracy 12926.99854
## 794                             Valley Wells 12935.79343
## 795                            Gold Mountain 12961.61323
## 796                           Forest Meadows 12973.12999
## 797                              Meadowbrook 13017.05162
## 798                                     Ione 13047.25583
## 799                                 Martinez 13066.04455
## 800                                McFarland 13099.00875
## 801                                   Penryn 13115.01291
## 802                                  Drytown 13121.12682
## 803                                 Richmond 13148.00979
## 804                                     Cobb 13208.76438
## 805                                   Santee 13213.67416
## 806                                   Oakley 13225.89811
## 807                     Camp Pendleton South 13226.79181
## 808                               East Shore 13243.56971
## 809                              Piñon Hills 13320.56045
## 810                                  Gazelle 13392.94837
## 811                           Olde Stockdale 13432.29976
## 812                               Buena Park 13459.35343
## 813                                Crestline 13460.69433
## 814                           Vandenberg AFB 13505.09331
## 815                                Riverside 13509.33484
## 816                                Oceanside 13536.53575
## 817                                Knightsen 13565.12456
## 818                                 Lewiston 13567.47544
## 819                               Strawberry 13568.79263
## 820                                   Sonora 13579.80607
## 821                                 Paradise 13588.61471
## 822                                   Diablo 13618.63571
## 823                                  Clayton 13636.74804
## 824                                  Gustine 13660.29722
## 825                                  Aguanga 13675.65032
## 826                                 Vineyard 13679.41908
## 827                            Norris Canyon 13703.41810
## 828                            Lake Sherwood 13720.86098
## 829                              Bloomington 13764.41254
## 830                                    Avery 13770.63301
## 831                            Big Bear City 13783.55908
## 832                                  Sultana 13790.96669
## 833                                   Bonita 13791.72015
## 834                                Hornbrook 13832.63705
## 835                          Los Altos Hills 13832.99700
## 836                              Granite Bay 13847.99522
## 837                            Grand Terrace 13895.11644
## 838                                   Colton 13908.85146
## 839                                 Cerritos 13911.03071
## 840                                 Midpines 13940.77150
## 841                               Burlingame 13952.21593
## 842                              Castroville 13958.29279
## 843                                San Pablo 13958.87162
## 844                                   Lamont 13973.43322
## 845                          Montalvin Manor 13994.69934
## 846                                   Herald 14003.09210
## 847                                 Saratoga 14020.90349
## 848                       Butte Creek Canyon 14027.84525
## 849                                   C-Road 14039.33933
## 850                                Lancaster 14049.20121
## 851                              Pine Valley 14052.10504
## 852                                   Newman 14066.90818
## 853                                 Seacliff 14072.48819
## 854                             Arden-Arcade 14132.53989
## 855                                  Tiburon 14204.94648
## 856                                   Newark 14229.97190
## 857                                  Redding 14278.15871
## 858                           South Pasadena 14281.51808
## 859                                  El Nido 14286.60543
## 860                                    Biggs 14292.54975
## 861                                Blairsden 14329.66830
## 862                                  Artesia 14330.50810
## 863                                  Murphys 14358.97572
## 864                                     Ojai 14384.11710
## 865                                Montecito 14385.28923
## 866                              Palm Desert 14414.74559
## 867                                    Dixon 14419.70361
## 868                                San Ramon 14423.48945
## 869                               Trowbridge 14428.75167
## 870                            Tuolumne City 14436.25150
## 871                                   Sutter 14495.83846
## 872                                     Sage 14516.36864
## 873                            Discovery Bay 14547.30427
## 874                       Spring Valley Lake 14548.29229
## 875                                 Alhambra 14561.31477
## 876                            Castro Valley 14570.58472
## 877                                Vallecito 14575.98845
## 878                                Newcastle 14607.49859
## 879                           Madera Ranchos 14611.96574
## 880                                Mono City 14616.88403
## 881                                  Pacheco 14626.74388
## 882                               Mira Monte 14640.40928
## 883                                   Sanger 14641.10342
## 884                                Long Barn 14654.32247
## 885                                  Milford 14677.22106
## 886                                   Monson 14690.14653
## 887                         East Los Angeles 14709.53118
## 888                                 Rosemont 14718.61665
## 889                                 Romoland 14732.99826
## 890                                  Bayview 14738.97991
## 891                                 Flournoy 14746.26961
## 892                              Buena Vista 14748.08348
## 893                               Bellflower 14758.28167
## 894                                   Loyola 14781.85712
## 895                                     Bell 14802.12521
## 896                         Eucalyptus Hills 14803.47036
## 897                                   Pinole 14804.41841
## 898                              Dos Palos Y 14824.68317
## 899                              Rollingwood 14826.37812
## 900                           Marina del Rey 14831.25499
## 901                                  Jovista 14832.74464
## 902                                 Graeagle 14846.02086
## 903                                Highgrove 14879.31936
## 904                              Alta Sierra 14991.43699
## 905                                  Carrick 15002.89010
## 906                                Weedpatch 15006.50493
## 907                               La Riviera 15017.04835
## 908                               Tara Hills 15033.23010
## 909                                  Alameda 15049.97779
## 910                            Thousand Oaks 15090.68495
## 911                             Monte Sereno 15091.32743
## 912                                 Westwood 15095.44811
## 913                                Sand City 15100.14746
## 914                                La Grange 15136.51051
## 915                                 La Palma 15194.92106
## 916                             Paynes Creek 15204.60948
## 917                              Crane Creek 15254.06481
## 918                             Chinese Camp 15263.42775
## 919                           Thousand Palms 15294.69535
## 920                                 Woodlake 15298.71524
## 921                                    Rodeo 15301.14109
## 922                                 Homeland 15309.44260
## 923                                 Danville 15315.02929
## 924                    Rancho Tehama Reserve 15320.76311
## 925                                   Cudahy 15322.13102
## 926                                     Clio 15329.03149
## 927                                  McSwain 15344.36578
## 928                               Costa Mesa 15368.22546
## 929                             North Auburn 15368.63206
## 930                                  Hayward 15373.30723
## 931                                 Edgewood 15407.55502
## 932                                  Hayfork 15419.56789
## 933                Lake Almanor Country Club 15435.59250
## 934               Tamalpais-Homestead Valley 15455.37296
## 935                                 Glendale 15458.68350
## 936                                   Ladera 15466.41101
## 937                                   Victor 15472.18671
## 938                             Buck Meadows 15490.55129
## 939                                  Maywood 15520.28441
## 940                                 Redcrest 15526.37738
## 941                                Oak Hills 15552.64349
## 942                            Stinson Beach 15554.75312
## 943                                Las Lomas 15567.29561
## 944                                 Murrieta 15591.14322
## 945                                    Woody 15593.81344
## 946                                    Campo 15604.85657
## 947                             Round Valley 15618.00840
## 948                                Richgrove 15640.41674
## 949                           Yosemite Lakes 15644.95245
## 950                               Litchfield 15711.55103
## 951                              Desert Edge 15713.93774
## 952                             Cold Springs 15730.44816
## 953                                Bay Point 15780.09113
## 954                             Buttonwillow 15781.91983
## 955                            East Nicolaus 15782.70115
## 956                           Redwood Valley 15876.60826
## 957                                  Shafter 15883.06964
## 958                               Marin City 15887.72078
## 959                                Belvedere 15889.81091
## 960                              Chula Vista 15958.54875
## 961                         Lake Los Angeles 15960.64766
## 962                                Bluewater 15966.54578
## 963                             Meiners Oaks 15971.57328
## 964                                   Kep'el 15982.35117
## 965                             Valley Ranch 15996.38452
## 966                            Warner Valley 16027.47577
## 967                                Earlimart 16071.67240
## 968                              Los Angeles 16110.52512
## 969                                 Temecula 16113.09725
## 970                                 Calpella 16155.57691
## 971                               Greenfield 16195.19215
## 972                              Green Acres 16219.03876
## 973                                Cupertino 16249.16671
## 974                               Tuttletown 16258.00158
## 975                               Cherryland 16270.51992
## 976                                Los Altos 16272.60893
## 977                                 Madeline 16275.13152
## 978                        Santa Rosa Valley 16283.45135
## 979                            Yosemite West 16311.27198
## 980                                Parksdale 16357.50957
## 981                                Palo Alto 16393.70341
## 982                                    Aptos 16410.03771
## 983                                  Lookout 16417.06621
## 984                           Monument Hills 16439.93934
## 985                                   Orland 16456.79887
## 986                                   Tupman 16475.60828
## 987                                Fish Camp 16489.39065
## 988                             Collierville 16490.14794
## 989                           Stones Landing 16491.75876
## 990                            Beverly Hills 16493.97087
## 991                            Jurupa Valley 16527.46696
## 992                               Lemon Cove 16532.83952
## 993                                   Perris 16594.11342
## 994                           Kettleman City 16606.93278
## 995                              Clear Creek 16614.84431
## 996                             Madera Acres 16628.48828
## 997                               South Gate 16633.29310
## 998                                Paramount 16669.08461
## 999                                  Rio Oso 16720.40607
## 1000                               Pittsburg 16726.41364
## 1001                                 Chester 16749.23163
## 1002                         Alhambra Valley 16752.40222
## 1003                         Hamilton Branch 16788.11006
## 1004                                Woodside 16808.63542
## 1005                                Hercules 16815.75413
## 1006                                El Adobe 16828.08459
## 1007                                Monterey 16835.81694
## 1008                             Amador City 16879.62389
## 1009                                Big Bend 16986.73606
## 1010                             Plumas Lake 17071.50582
## 1011                   East Richmond Heights 17074.43512
## 1012                                 Menifee 17083.25787
## 1013                            Moss Landing 17090.93837
## 1014                             Rio del Mar 17127.39464
## 1015                                   Canby 17131.00349
## 1016                             Santa Clara 17149.97338
## 1017                                 Tomales 17161.71238
## 1018                               Sausalito 17184.19706
## 1019                               Jamestown 17223.13435
## 1020                                 Hyampom 17260.59114
## 1021                               Los Gatos 17275.46197
## 1022                                 Ivanhoe 17347.57630
## 1023                          Mountain House 17355.10149
## 1024                            Hillsborough 17373.47201
## 1025                          Rodriguez Camp 17382.90221
## 1026                                Nicolaus 17403.14180
## 1027                                    Mesa 17447.81503
## 1028                             Bella Vista 17448.84018
## 1029                                    Onyx 17459.74383
## 1030                               June Lake 17503.25775
## 1031                             El Sobrante 17520.90724
## 1032                                 Reedley 17573.09601
## 1033                             Culver City 17649.98523
## 1034                                 Maxwell 17671.86434
## 1035                                  Bieber 17690.69064
## 1036                                 Willows 17706.40792
## 1037                               March ARB 17709.95185
## 1038                                  Vernon 17710.61070
## 1039                          Pumpkin Center 17789.17013
## 1040                              Hydesville 17813.05283
## 1041                                 Montara 17858.09891
## 1042                               Whitehawk 17868.91870
## 1043                                 Ashland 17870.32713
## 1044                              San Simeon 17891.12297
## 1045                               Good Hope 17901.66088
## 1046                        Hawaiian Gardens 17985.10710
## 1047                             Downieville 17996.90131
## 1048                         Fort Washington 18022.32473
## 1049                     Monterey Park Tract 18026.41035
## 1050                              Summerland 18047.88542
## 1051                                Rosedale 18051.21145
## 1052                              North Gate 18122.52187
## 1053                  Lake Almanor Peninsula 18128.35003
## 1054                                Lakewood 18130.88657
## 1055                                 Lynwood 18194.27772
## 1056                         Huntington Park 18212.15446
## 1057                           Pleasant Hill 18221.40646
## 1058                            Dillon Beach 18261.76883
## 1059                                   Wasco 18266.76692
## 1060                                  Arnold 18280.96351
## 1061                               Elk Grove 18284.11017
## 1062                                  Camino 18290.41344
## 1063                                  Clovis 18342.30416
## 1064                                    Pala 18348.75611
## 1065                              Muir Beach 18451.70621
## 1066                            Indian Wells 18475.47684
## 1067                              Winchester 18477.29897
## 1068                                 Concord 18492.61716
## 1069                                   Trona 18498.64943
## 1070                                  Avalon 18506.16065
## 1071                                   Vista 18514.26962
## 1072                         Fountain Valley 18522.20338
## 1073                                 Burbank 18524.27684
## 1074                             San Lorenzo 18569.74109
## 1075                                   Alamo 18589.61026
## 1076                              Sacramento 18669.54891
## 1077                                  Pajaro 18697.80996
## 1078                           Knights Ferry 18710.01898
## 1079                                 Alpaugh 18720.92384
## 1080                                 Cypress 18770.75201
## 1081                                Stanford 18790.25516
## 1082                             Walnut Park 18796.69912
## 1083                                   Huron 18804.44471
## 1084                            Mount Shasta 18834.32211
## 1085                                Moorpark 18847.28551
## 1086                              Sky Valley 18878.15817
## 1087                                Franklin 18885.92743
## 1088                                  Madera 18910.62030
## 1089                               Sunnyvale 18913.25585
## 1090                           Goodyears Bar 18928.90938
## 1091                                  Acampo 18948.91243
## 1092                            French Gulch 18986.30384
## 1093                                    Weed 19020.69446
## 1094                              Emeryville 19033.79806
## 1095                                    Galt 19037.89644
## 1096                            Garden Grove 19053.38278
## 1097                               San Mateo 19056.17956
## 1098                           National City 19070.82620
## 1099                                 Stanton 19072.75353
## 1100                                   Volta 19088.34737
## 1101                          Orange Blossom 19091.55484
## 1102                         West Menlo Park 19121.40362
## 1103                             Mead Valley 19142.91542
## 1104                                 Atwater 19160.63593
## 1105                   East Rancho Dominguez 19176.97403
## 1106                           Rolling Hills 19221.96080
## 1107                                  Dinuba 19239.08894
## 1108                               Fruitdale 19267.86035
## 1109                           Bethel Island 19313.06931
## 1110                              El Cerrito 19341.80065
## 1111                               Boulevard 19380.13513
## 1112                                Parkwood 19383.52776
## 1113                          West Hollywood 19433.14949
## 1114                              Coarsegold 19437.19673
## 1115                                Lindcove 19476.38634
## 1116                              Anchor Bay 19479.28648
## 1117                                 Gasquet 19548.22581
## 1118                               El Portal 19552.56424
## 1119                           Reliez Valley 19572.41572
## 1120                                   Dales 19598.87345
## 1121                                  Phelan 19667.69486
## 1122                                 Oakland 19682.16609
## 1123                                Teviston 19715.98486
## 1124                                  Florin 19748.52902
## 1125                            Sutter Creek 19854.84820
## 1126                                Hesperia 19866.96242
## 1127                           Mountain View 19948.21004
## 1128                          Ladera Heights 19952.37455
## 1129                                Campbell 19968.65072
## 1130                                  Albany 19977.48892
## 1131                                    Bend 20023.82983
## 1132                       Lake of the Pines 20032.36473
## 1133                                 Del Rey 20104.73244
## 1134                            Nipinnawasee 20105.69000
## 1135                                  Scotia 20110.28652
## 1136                                Rio Dell 20131.19203
## 1137                                 Parlier 20147.30672
## 1138                          Riverdale Park 20160.09551
## 1139                                  Merced 20232.80138
## 1140                                  Artois 20340.25739
## 1141                         Patterson Tract 20360.57124
## 1142                                 Talmage 20462.01263
## 1143                                 Tennant 20525.01375
## 1144                                Ahwahnee 20550.17750
## 1145                              Day Valley 20562.94355
## 1146                           Cambrian Park 20596.03831
## 1147                       Carmel-by-the-Sea 20607.69725
## 1148                            Desert Palms 20694.70948
## 1149                               Spaulding 20702.65507
## 1150                             Victorville 20722.88245
## 1151                            Meadow Vista 20765.84244
## 1152                            Baywood Park 20822.45081
## 1153                                   Chico 20832.88183
## 1154                              Fiddletown 20877.61420
## 1155                         Florence-Graham 20885.79786
## 1156                          Mountain Ranch 20907.65553
## 1157                           Pacific Grove 20964.67450
## 1158                              El Segundo 20971.81774
## 1159                              San Miguel 21003.07702
## 1160                          La Selva Beach 21028.42730
## 1161                           Little Valley 21071.91251
## 1162                     Mountain View Acres 21121.02924
## 1163                              El Granada 21146.71226
## 1164                             Laytonville 21234.38869
## 1165                          Cherokee Strip 21235.39563
## 1166                             Shell Ridge 21238.44152
## 1167                             Willowbrook 21239.79525
## 1168                             Toro Canyon 21251.89424
## 1169                                Atherton 21272.04100
## 1170                                   Cowan 21287.45877
## 1171                                 Needles 21289.04798
## 1172                            Los Alamitos 21295.46943
## 1173                             Midway City 21319.65672
## 1174                              Moss Beach 21321.35603
## 1175                              Foresthill 21365.47111
## 1176                               San Diego 21395.02488
## 1177                               Los Banos 21417.55697
## 1178               Aptos Hills-Larkin Valley 21498.99564
## 1179                                 Martell 21544.40919
## 1180                                Berkeley 21565.56454
## 1181                 El Monte Mobile Village 21598.77173
## 1182                            Pajaro Dunes 21599.74413
## 1183                                 Burbank 21602.88078
## 1184                            Walnut Creek 21619.94875
## 1185                               Highlands 21627.35193
## 1186                           Bermuda Dunes 21629.83652
## 1187                      Emerald Lake Hills 21635.72308
## 1188                              Farmington 21639.23815
## 1189                              Kensington 21643.11860
## 1190                     Contra Costa Centre 21643.92886
## 1191                                  Colfax 21645.87713
## 1192                              Woodbridge 21663.63756
## 1193                               Dos Palos 21668.70635
## 1194                            Markleeville 21712.02422
## 1195          University of California-Davis 21756.99818
## 1196                                  Cassel 21807.09236
## 1197                            West Modesto 21816.60588
## 1198                                 Compton 21834.54465
## 1199                          Hidden Meadows 21843.90652
## 1200                          Mexican Colony 21883.48614
## 1201                             Foster City 21886.48262
## 1202                                  Burney 21896.76652
## 1203                         Knights Landing 21963.27529
## 1204                                Nubieber 21981.03142
## 1205                                   Ukiah 21985.34526
## 1206                             Watsonville 22015.18197
## 1207                                    Yolo 22034.04272
## 1208                             River Pines 22042.44817
## 1209                            Mount Laguna 22082.63579
## 1210                             Westminster 22104.90886
## 1211                              Interlaken 22110.35372
## 1212                          Searles Valley 22152.97185
## 1213                             San Leandro 22153.78008
## 1214                                Piedmont 22157.85336
## 1215                                Snelling 22165.81231
## 1216                       Fruitridge Pocket 22225.38055
## 1217                            Mount Hebron 22250.25402
## 1218                 View Park-Windsor Hills 22263.29014
## 1219                                  Winton 22353.85853
## 1220                               Old River 22361.03350
## 1221                            East Oakdale 22411.50884
## 1222                             Carpinteria 22412.27661
## 1223                          Tarpey Village 22430.35082
## 1224                                  Benbow 22489.40725
## 1225                               Boonville 22501.75875
## 1226                        Del Monte Forest 22530.29440
## 1227                           French Valley 22559.74820
## 1228                              Bret Harte 22619.93646
## 1229                                Rossmoor 22624.49658
## 1230                             Valley Home 22660.84327
## 1231                             Castle Hill 22691.35706
## 1232                            Smith Corner 22713.23255
## 1233                         West Sacramento 22795.99875
## 1234                                    Lodi 22870.46432
## 1235                              Dutch Flat 22985.06976
## 1236                                   Weott 23040.42955
## 1237                                  Tahoma 23042.29462
## 1238                                  Grimes 23180.02958
## 1239                               El Rancho 23236.35994
## 1240                                 Macdoel 23240.72967
## 1241                               Stevinson 23250.84025
## 1242                         South Dos Palos 23267.71284
## 1243                              Livingston 23279.45236
## 1244                          Virginia Lakes 23337.55144
## 1245                                Lakeside 23340.20832
## 1246                                 Parkway 23394.03865
## 1247                                 Fortuna 23431.61353
## 1248                        Huntington Beach 23464.80057
## 1249                         North Fair Oaks 23559.17038
## 1250                              Lemon Hill 23599.13848
## 1251                                   Rouse 23610.81135
## 1252                         Manhattan Beach 23612.22799
## 1253                          Acalanes Ridge 23620.95248
## 1254                           Phillipsville 23636.25446
## 1255                                 Robbins 23643.43224
## 1256                              Lost Hills 23646.84319
## 1257                           San Francisco 23711.74061
## 1258                               Tonyville 23712.39628
## 1259                            Delft Colony 23714.56420
## 1260                                  Peters 23768.92039
## 1261                                  Likely 23901.02482
## 1262                              Bear Creek 23964.95366
## 1263                          East Palo Alto 24014.32453
## 1264                                 Belmont 24026.20222
## 1265                                Stebbins 24093.83253
## 1266                                   Davis 24112.71365
## 1267                                  Lennox 24114.24625
## 1268                              Dorrington 24193.43656
## 1269                               Inglewood 24228.44931
## 1270                                  Darwin 24311.18531
## 1271                                  London 24340.15789
## 1272                          Mokelumne Hill 24367.17999
## 1273                                  Wautec 24392.82100
## 1274                                 Saranap 24423.44980
## 1275                                Waterloo 24442.23821
## 1276                              Twin Lakes 24494.58210
## 1277                                  Linden 24501.61046
## 1278                               Floriston 24519.58926
## 1279                              Myers Flat 24549.72453
## 1280                             Signal Hill 24552.87130
## 1281                                  Pixley 24562.19080
## 1282                                Parklawn 24640.36789
## 1283                                  Colusa 24643.64275
## 1284                              Tooleville 24657.99015
## 1285                   West Rancho Dominguez 24667.26450
## 1286                                Del Aire 24680.94415
## 1287                                Carlsbad 24703.28487
## 1288                               Alleghany 24741.82700
## 1289                                 Jackson 24751.60285
## 1290                             Garberville 24801.53156
## 1291                           Half Moon Bay 24851.17951
## 1292                                Rosamond 24871.97952
## 1293                               Lafayette 24916.37470
## 1294               San Diego Country Estates 24929.90229
## 1295                              Menlo Park 24976.63722
## 1296                           Pollock Pines 24996.92827
## 1297                                 Freedom 25098.13426
## 1298                              Corralitos 25155.67035
## 1299                                Fairmead 25159.04086
## 1300                              San Carlos 25205.55279
## 1301                               Red Bluff 25212.62437
## 1302                                   Ceres 25252.61804
## 1303                                 Modesto 25346.55369
## 1304                                 Miranda 25352.01304
## 1305                               Big River 25415.53739
## 1306                                 Bystrom 25430.73374
## 1307                                  Amesti 25432.91382
## 1308                                    Alta 25484.91419
## 1309                                Franklin 25492.45739
## 1310                             Indio Hills 25504.35623
## 1311                            Linnell Camp 25522.36022
## 1312                                 Lindsay 25592.62135
## 1313                               Sunnyside 25655.40706
## 1314                                 Corning 25682.21297
## 1315                                 Cartago 25736.34591
## 1316                            Farmersville 25775.26245
## 1317                             Sierra City 25845.55303
## 1318                                Coronado 25897.48060
## 1319                        East Porterville 25962.92412
## 1320                            Johnson Park 25997.77526
## 1321                                 Cressey 26120.54325
## 1322                               La Quinta 26162.54959
## 1323                                 Oakdale 26184.32813
## 1324                            Yucca Valley 26189.66416
## 1325                              Seal Beach 26206.77060
## 1326                        Fall River Mills 26225.08328
## 1327                           Hermosa Beach 26235.92337
## 1328                                Woodland 26387.92040
## 1329                               Hawthorne 26409.08346
## 1330                              San Marcos 26486.46947
## 1331                                Westmont 26544.94624
## 1332                                   Indio 26616.03590
## 1333                    Sunnyside-Tahoe City 26651.84594
## 1334                                   Ducor 26702.37481
## 1335                              Long Beach 26737.92826
## 1336                         Lake San Marcos 26742.94909
## 1337                                 Visalia 26746.75505
## 1338                                  Morada 26785.99582
## 1339                                 Lathrop 26846.30763
## 1340                                  Orinda 26853.72991
## 1341                                  Exeter 26966.42244
## 1342                                  Tuttle 26967.24462
## 1343                          Old Fig Garden 27035.80495
## 1344                                 Airport 27070.09969
## 1345                                 Olancha 27127.24046
## 1346                             West Athens 27131.67219
## 1347                          Imperial Beach 27189.49002
## 1348                              Strathmore 27284.90598
## 1349                                  Redway 27312.39446
## 1350                                 Mayfair 27341.52501
## 1351                                   Selma 27367.52516
## 1352                                  Carson 27399.42379
## 1353                                 La Vina 27443.54157
## 1354                                   Keyes 27481.08519
## 1355                                  Dorris 27646.07289
## 1356                            Silver Lakes 27700.85989
## 1357                                  Fowler 27720.18532
## 1358                                  Salida 27727.08077
## 1359                                   Poway 27741.61969
## 1360                                  Fresno 27742.52129
## 1361                              Washington 27750.68622
## 1362                             West Bishop 27790.19723
## 1363                            Redwood City 27806.94015
## 1364                                Lawndale 27845.12853
## 1365                               El Macero 28033.64403
## 1366                                Meridian 28130.23760
## 1367                                  Moraga 28172.92631
## 1368                                Adelanto 28196.26337
## 1369                                   Baker 28263.79172
## 1370                                 Manteca 28332.68356
## 1371                                 Gardena 28482.64257
## 1372                                Chalfant 28530.86408
## 1373                                  Traver 28552.33402
## 1374                                Freeport 28563.26021
## 1375                               Lone Pine 28648.84061
## 1376         University of California-Merced 28656.53301
## 1377                           Valley Center 28671.47368
## 1378                           Redondo Beach 28779.74403
## 1379                               Kingsburg 28888.59986
## 1380                              Chowchilla 28906.97188
## 1381                                 Hiouchi 28946.18577
## 1382                  Dixon Lane-MeadowCreek 28968.52246
## 1383                            Alondra Park 29123.35298
## 1384                          Alpine Village 29165.48179
## 1385                                   Delhi 29281.39838
## 1386                                 Leggett 29332.01032
## 1387                                   Ripon 29343.98011
## 1388                                Thornton 29547.79035
## 1389                                McArthur 29633.97832
## 1390                                Comptche 29674.16872
## 1391                            Hilmar-Irwin 29715.33734
## 1392                             Porterville 29729.40436
## 1393                                 Ballico 29893.10618
## 1394                                  Malaga 29953.73646
## 1395                             Terra Bella 30036.67275
## 1396                                  Goshen 30067.91180
## 1397                                    Hood 30089.44000
## 1398                               Richfield 30135.89229
## 1399                                 Turlock 30219.25110
## 1400                                 Escalon 30349.57506
## 1401                            Independence 30531.53307
## 1402                                   Biola 30604.08666
## 1403                               Rio Vista 30651.77817
## 1404                             Smith River 30679.07904
## 1405                                   Philo 30995.78865
## 1406                                  Ramona 31048.95046
## 1407                              Pine Grove 31072.48375
## 1408                             West Carson 31123.18098
## 1409                               Hypericum 31254.59113
## 1410                                 Planada 31298.14486
## 1411                           Hamilton City 31408.32741
## 1412                           Harmony Grove 31444.21020
## 1413                                    Nord 31488.41292
## 1414                                  Bishop 31536.41082
## 1415                                    Vina 31620.58183
## 1416                          Rail Road Flat 31688.95002
## 1417                                   Calwa 31742.21033
## 1418                            Elfin Forest 31771.52627
## 1419                              Mesa Vista 31825.06997
## 1420                                  Loleta 31842.36545
## 1421                               Escondido 32011.64589
## 1422                              Clarksburg 32020.25420
## 1423                               Fort Dick 32174.90452
## 1424                              Fieldbrook 32204.21043
## 1425                                Torrance 32217.89433
## 1426                                  Empire 32223.22304
## 1427                              Cedarville 32339.52778
## 1428                              Pine Hills 32346.94656
## 1429                                 Truckee 32398.61522
## 1430                             West Goshen 32485.02852
## 1431                    Palos Verdes Estates 32784.47066
## 1432                            Dollar Point 32860.69252
## 1433                               Plainview 32879.30994
## 1434                                 Barstow 32929.86976
## 1435                                 Volcano 33015.98545
## 1436                                  Tipton 33060.15427
## 1437                                  Cleone 33061.17267
## 1438                                 Hughson 33072.00893
## 1439                                Ferndale 33134.95807
## 1440                                  August 33149.79513
## 1441                        Vista Santa Rosa 33169.85967
## 1442                        California Pines 33235.74725
## 1443                               Encinitas 33271.66080
## 1444                                 Isleton 33384.08667
## 1445                            Garden Acres 33434.78375
## 1446                               Blue Lake 33442.50555
## 1447                             Three Rocks 33445.50241
## 1448                             Los Molinos 33528.51497
## 1449                                Le Grand 33601.76407
## 1450                               Riverbank 33622.09517
## 1451                                   Orick 33740.75120
## 1452                            Graniteville 33766.80898
## 1453                                 Del Rio 34262.20285
## 1454                     Rancho Palos Verdes 34264.76714
## 1455                                Lockwood 34390.56904
## 1456                         Lincoln Village 34401.30879
## 1457                                 Lenwood 34408.49587
## 1458                                  Cutten 34429.91818
## 1459                            Cantua Creek 34450.74431
## 1460                               Courtland 34468.53361
## 1461                           Humboldt Hill 34518.71223
## 1462                                Westside 34547.60716
## 1463                               Princeton 34612.58716
## 1464                                  Bowles 34696.63643
## 1465                                Del Dios 34732.06525
## 1466                             Point Arena 34747.10120
## 1467                             Joshua Tree 34842.42292
## 1468                                  Lomita 34896.87355
## 1469                             Bear Valley 34955.29354
## 1470                             French Camp 34996.73299
## 1471                              Red Corral 35018.70001
## 1472                                  Julian 35062.20996
## 1473                              Cedar Flat 35106.69605
## 1474                           Grizzly Flats 35179.65841
## 1475                                Kingvale 35248.60788
## 1476                              Fort Bragg 35300.47491
## 1477                               Terminous 35341.76833
## 1478                               Indianola 35547.81050
## 1479                              Myrtletown 35548.06858
## 1480                                Stockton 35725.20525
## 1481                            Walnut Grove 35737.53138
## 1482                         Lemoore Station 35778.95960
## 1483                                Proberta 35784.04135
## 1484                                  Easton 35942.15439
## 1485                                  Denair 35985.93388
## 1486                          Fields Landing 36000.93498
## 1487                                  Tehama 36003.88857
## 1488                        South Lake Tahoe 36020.58346
## 1489                               Coachella 36024.84931
## 1490                              Big Lagoon 36097.03556
## 1491                                Monmouth 36295.47509
## 1492                            Soda Springs 36295.56565
## 1493                                 Pioneer 36353.36236
## 1494                                 Bayview 36391.38107
## 1495                                  Seeley 36410.45896
## 1496                     Westhaven-Moonstone 36543.53010
## 1497                         Fairbanks Ranch 36718.12883
## 1498                                  Meyers 36870.46588
## 1499                               Stratford 36934.84720
## 1500                         California City 36981.49874
## 1501                         Rancho Santa Fe 37128.28911
## 1502                   Rolling Hills Estates 37202.91003
## 1503                             Edwards AFB 37471.07778
## 1504               Woodville Farm Labor Camp 37481.75124
## 1505                                  Eureka 37491.42446
## 1506                                 Kennedy 37533.23472
## 1507                    Poplar-Cotton Center 37538.28456
## 1508                              Las Flores 37552.89230
## 1509                               Waterford 37556.16659
## 1510                               West Park 37717.83163
## 1511                           McKinleyville 37788.71426
## 1512                                  Caspar 37821.50470
## 1513                               Wilkerson 37833.00636
## 1514                                  Gerber 37896.62637
## 1515                       Bertsch-Oceanview 37955.33418
## 1516                                  Benton 37974.11960
## 1517                            Country Club 37983.58793
## 1518                       East Tulare Villa 38026.09362
## 1519                           Taft Mosswood 38076.56224
## 1520                           Carnelian Bay 38169.30001
## 1521                            Pearsonville 38206.34388
## 1522                           Rolling Hills 38370.51211
## 1523                        Homestead Valley 38405.72371
## 1524                              West Point 38937.75896
## 1525                              Manchester 39082.25379
## 1526                               Woodville 39190.62696
## 1527                                Trinidad 39272.30650
## 1528                           Crescent City 39296.70130
## 1529                            Solana Beach 39329.50186
## 1530                                Kirkwood 39521.99502
## 1531                               Fairhaven 39556.00357
## 1532                               Mendocino 39608.82870
## 1533                                 Thermal 39641.54411
## 1534            El Centro Naval Air Facility 39675.23395
## 1535                                  Kerman 39715.38550
## 1536                                 Del Mar 39966.51741
## 1537                                Corcoran 40003.15118
## 1538                                  Arcata 40082.90264
## 1539                                  Tulare 40107.20610
## 1540                                 Hickman 40156.79486
## 1541                               Firebaugh 40214.95996
## 1542                            Amador Pines 40502.18365
## 1543                             Tahoe Vista 40693.16060
## 1544                                Buckhorn 40728.64406
## 1545                             Kings Beach 40958.38575
## 1546                                   Samoa 41003.07437
## 1547                            Little River 41159.42731
## 1548                              Ridgecrest 41980.71845
## 1549                           North Edwards 42322.14777
## 1550                                  Albion 42666.81484
## 1551                                  Manila 42872.46833
## 1552                                 Matheny 43484.03196
## 1553                                   Laton 44193.48766
## 1554                                 Alturas 44272.83390
## 1555                                 Waukena 44407.86707
## 1556                         Daphnedale Park 45272.62057
## 1557                                 Lemoore 45621.50215
## 1558                                  Keeler 45658.05520
## 1559                               Caruthers 45675.80804
## 1560                                   Oasis 45803.83546
## 1561                        China Lake Acres 45821.79107
## 1562                                   Yermo 45906.25361
## 1563                               Lake City 46021.72700
## 1564                      Ridgecrest Heights 46570.89279
## 1565                               El Centro 47039.07894
## 1566                                 Klamath 47152.62015
## 1567                                Inyokern 47160.06242
## 1568                            Shelter Cove 47361.61630
## 1569                                   Mecca 47623.49786
## 1570                             Raisin City 47733.60415
## 1571                         Borrego Springs 47853.86880
## 1572                                Hardwick 48005.28996
## 1573                                   Heber 48092.15510
## 1574                                Imperial 48291.10140
## 1575                                 Hanford 48429.90969
## 1576                             Home Garden 48484.29123
## 1577                                  Lanare 48542.93749
## 1578                             San Joaquin 49547.06717
############
# LAND USAGE
############

# nlcd_url <- "https://tiledimageservices2.arcgis.com/Uq9r85Potqm3MfRV/arcgis/rest/services/nlcd_2019_land_cover_ca_wm/ImageServer?f=pjson"
# 
# # Fetch metadata
# nlcd_metadata <- fromJSON(nlcd_url)
# print(nlcd_metadata)
# 
# # Define bounding box (xmin, ymin, xmax, ymax in lat/lon)
# bbox <- "-125, 32, -114, 42"  # Approximate bounding box for California
# # 

####NEW RASTER
######
# Load NLCD raster
nlcd_raster <- rast("/Users/macbookpro/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/Annual_NLCD_LndCov_2020_CU_C1V0.tif")

# Load California boundary and reproject to match raster CRS
CA <- st_read("~/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/ne_110m_admin_1_states/ne_110m_admin_1_states_provinces.shp") %>%
  filter(postal == "CA") %>%
  st_transform(crs(nlcd_raster))
## Reading layer `ne_110m_admin_1_states_provinces' from data source 
##   `/Users/macbookpro/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/ne_110m_admin_1_states/ne_110m_admin_1_states_provinces.shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 51 features and 121 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -171.7911 ymin: 18.91619 xmax: -66.96466 ymax: 71.35776
## Geodetic CRS:  WGS 84
# Convert California boundary to terra format and crop raster
nlcd_ca <- crop(nlcd_raster, vect(CA), mask = TRUE)
## |---------|---------|---------|---------|=========================================                                          |---------|---------|---------|---------|=========================================                                          
# Visualize and save cropped raster
plot(nlcd_ca, main = "NLCD Land Cover - California (2020)")

writeRaster(nlcd_ca, "NLCD_2020_California.tif", overwrite = TRUE)
## |---------|---------|---------|---------|=========================================                                          
# Load California Land Cover Raster
nlcd_ca <- rast("/Users/macbookpro/NLCD_2020_California.tif")

# Load and clean 2020 fire perimeters, ensuring CRS consistency
fire_perimeters <- st_read("~/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/California_Fire_Perimeters_(all)/California_Fire_Perimeters_(all).shp") %>%
  filter(YEAR_ == 2020) %>%
  st_make_valid() %>%
  filter(!st_is_empty(.)) %>%
  st_transform(crs(nlcd_raster))
## Reading layer `California_Fire_Perimeters_(all)' from data source 
##   `/Users/macbookpro/Desktop/Victoria/DSDM/Term2/Geospatial/Final_Project/California_Fire_Perimeters_(all)/California_Fire_Perimeters_(all).shp' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 22261 features and 21 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -13848330 ymin: 3833204 xmax: -12705610 ymax: 5255380
## Projected CRS: WGS 84 / Pseudo-Mercator
# Convert fire perimeters to terra vector format
fire_vect <- vect(fire_perimeters)

# Extract land cover data intersecting fires
landcover_fire_extract <- terra::extract(nlcd_ca, fire_vect)

# Convert extracted data to a dataframe and rename columns
landcover_fire_data <- data.frame(landcover_fire_extract)
colnames(landcover_fire_data) <- c("ID", "Land_Cover_Type")

# Summarize extracted land cover data
landcover_summary <- landcover_fire_data %>%
  group_by(Land_Cover_Type) %>%
  summarise(Count = n()) %>%
  arrange(desc(Count))

print(landcover_summary)
## # A tibble: 16 × 2
##    Land_Cover_Type   Count
##              <int>   <int>
##  1              52 6998187
##  2              42 6824835
##  3              71 3970934
##  4              NA  369912
##  5              43  345179
##  6              21  231006
##  7              41  104816
##  8              22   80187
##  9              90   47870
## 10              11   17731
## 11              95   16092
## 12              31   11987
## 13              82    9030
## 14              81    6181
## 15              23    5894
## 16              24     165
# # Convert raster to dataframe for plotting
# nlcd_df <- as.data.frame(nlcd_ca, xy = TRUE, cells = TRUE)
# colnames(nlcd_df) <- c("x", "y", "Land_Cover_Type")

# Reduce raster resolution
nlcd_ca_resampled <- aggregate(nlcd_ca, fact=10, fun=modal)  # Increase `fact` if necessary

# Convert to dataframe
nlcd_df <- as.data.frame(nlcd_ca_resampled, xy = TRUE, cells = TRUE)
colnames(nlcd_df) <- c("x", "y", "Land_Cover_Type")

# Check raster categories before conversion
print(unique(values(nlcd_ca_resampled)))
##       Annual_NLCD_LndCov_2020_CU_C1V0
##  [1,]                              NA
##  [2,]                              22
##  [3,]                              43
##  [4,]                              11
##  [5,]                              81
##  [6,]                              42
##  [7,]                              41
##  [8,]                              52
##  [9,]                              71
## [10,]                              31
## [11,]                              21
## [12,]                              23
## [13,]                              90
## [14,]                              95
## [15,]                              82
## [16,]                              24
## [17,]                              12
# Convert raster to polygon while preserving values
nlcd_poly <- as.polygons(nlcd_ca_resampled, dissolve = TRUE) %>%
  st_as_sf()

# Check column names
print(colnames(nlcd_poly))
## [1] "Annual_NLCD_LndCov_2020_CU_C1V0" "geometry"
# Rename the raster value column (which currently has the raster filename)
colnames(nlcd_poly)[colnames(nlcd_poly) == "Annual_NLCD_LndCov_2020_CU_C1V0"] <- "Land_Cover_Type"

# Ensure column exists
if (!"Land_Cover_Type" %in% colnames(nlcd_poly)) {
  stop("Land_Cover_Type column is missing in nlcd_poly. Check raster attributes.")
}

# Plot using vectorized raster
ggplot() +
  geom_sf(data = nlcd_poly, aes(fill = factor(Land_Cover_Type)), color = NA) +
  geom_sf(data = st_transform(fire_perimeters, crs(nlcd_ca)), fill = NA, color = "black", linewidth = 0.3) +
  labs(title = "NLCD Land Cover and 2020 Fire Perimeters in California",
       fill = "Land Cover Type") +
  theme_minimal()

# Define land cover type labels correctly
land_cover_labels <- data.frame(
  Land_Cover_Type = c(11, 12, 21, 22, 23, 24, 31, 41, 42, 43, 52, 71, 81, 82, 90, 95),
  Land_Cover_Name = c("Open Water", "Perennial Ice/Snow", "Developed, Open Space",
                      "Developed, Low Intensity", "Developed, Medium Intensity",
                      "Developed, High Intensity", "Barren Land",
                      "Deciduous Forest", "Evergreen Forest", "Mixed Forest",
                      "Shrub/Scrub", "Grassland/Herbaceous", "Pasture/Hay",
                      "Cultivated Crops", "Woody Wetlands",
                      "Emergent Herbaceous Wetlands")
)


# # Ensure raster values are preserved before converting to polygons
# nlcd_poly <- as.polygons(nlcd_ca_resampled, dissolve = TRUE) %>%
#   st_as_sf()
# 
# # Rename raster column to match previous use
# colnames(nlcd_poly)[colnames(nlcd_poly) == "Annual_NLCD_LndCov_2020_CU_C1V0"] <- "Land_Cover_Type"

# Convert Land_Cover_Type to numeric for proper merging
nlcd_poly$Land_Cover_Type <- as.numeric(nlcd_poly$Land_Cover_Type)

# Merge with land cover labels
nlcd_poly <- left_join(nlcd_poly, land_cover_labels, by = "Land_Cover_Type")

##
#Check here if label naming works
nlcd_poly
## Simple feature collection with 16 features and 2 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: -2356875 ymin: 1240875 xmax: -1650075 ymax: 2452575
## Projected CRS: AEA        WGS84
## First 10 features:
##    Land_Cover_Type             Land_Cover_Name                       geometry
## 1               11                  Open Water MULTIPOLYGON (((-2287275 24...
## 2               12          Perennial Ice/Snow MULTIPOLYGON (((-2145975 23...
## 3               21       Developed, Open Space MULTIPOLYGON (((-2288175 24...
## 4               22    Developed, Low Intensity MULTIPOLYGON (((-2286975 24...
## 5               23 Developed, Medium Intensity MULTIPOLYGON (((-2287875 24...
## 6               24   Developed, High Intensity MULTIPOLYGON (((-2286975 24...
## 7               31                 Barren Land MULTIPOLYGON (((-2287875 24...
## 8               41            Deciduous Forest MULTIPOLYGON (((-2285475 24...
## 9               42            Evergreen Forest MULTIPOLYGON (((-2286375 24...
## 10              43                Mixed Forest MULTIPOLYGON (((-2286675 24...
##

# Categorize land use for Developed vs. Natural/Other
nlcd_poly <- nlcd_poly %>%
  mutate(
    Land_Use_Category = ifelse(Land_Cover_Type %in% c(21,22,23,24), 
                               "Developed (Urban/Populated)",
                               "Natural / Other")
  )

# Check if all labels joined correctly
if (!"Land_Cover_Name" %in% colnames(nlcd_poly)) {
  stop("Land_Cover_Name column is missing after merging labels.")
}

# Plot using vectorized raster
ggplot() +
  geom_sf(data = nlcd_poly, aes(fill = factor(Land_Cover_Name)), color = NA) +
  geom_sf(data = st_transform(fire_perimeters, crs(nlcd_ca)), fill = NA, color = "black", linewidth = 0.3) +
  labs(title = "NLCD Land Cover and 2020 Fire Perimeters in California",
       fill = "Land Cover Type") +
  theme_minimal()

# Plot with categorized land usage
ggplot() +
  geom_sf(data = nlcd_poly, aes(fill = Land_Use_Category), color = NA) +
  geom_sf(data = fire_perimeters, fill = NA, color = "red", linewidth = 0.4) +
  scale_fill_manual(values=c("gray", "forestgreen"), name="Land Usage Type") +
  labs(title = "California Land Cover (2020) and Fire Perimeters",
       subtitle = "Developed vs Natural areas affected by 2020 fires",
       x = "Longitude", y = "Latitude") +
  theme_minimal()